package com.iwhalecloud.citybrain.flow.platform.manager.infrastructure.mapper;

import com.iwhalecloud.citybrain.flow.platform.manager.infrastructure.entities.FlowReNodeAuth;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FlowReNodeAuthDAO {
    int deleteByPrimaryKey(Integer id);

    int insert(FlowReNodeAuth record);

    int insertSelective(FlowReNodeAuth record);

    FlowReNodeAuth selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(FlowReNodeAuth record);

    int updateByPrimaryKey(FlowReNodeAuth record);

    int batchInsert(List<FlowReNodeAuth> nodeAuthList);

    List<FlowReNodeAuth> selectByDeployIdAndNodeCode(String deployId, String nodeCode);

    List<FlowReNodeAuth> selectByProcdefIdAndNodeCode(@Param("porcdefId") String procdefId, @Param("nodeCode") String nodeCode);


    FlowReNodeAuth selectByDeployIdAndNodeCodeAndAuthName(@Param("deployId") String deployId, @Param("nodeCode") String nodeCode, @Param("authName") String authName);

    
}